package com.jiazhong.mingxing.boot.boot10.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Schema(description = "图书实体类", name = "book")
@Data
public class Book implements Serializable {
    @Schema(name = "id", description = "主键，图书编号")
    private Integer id;
    @Schema(name = "name", description = "图书名称")
    private String name;
    @Schema(name = "price", description = "图书价格，必须大于1元")
    private Double price;
    @Schema(name = "createTime", description = "创建时间，默认当前时间")
    private Date createTime;
    @Schema(name = "updateTime", description = "修改时间，默认当前时间")
    private Date updateTime;

}
